#ifndef TEXTURE_H
#define TEXTURE_H

#include <GL/gl.h>
class RGBHeader
{
public:
    short magic;
    char storage;
    char bpc;
    unsigned short dim;
    unsigned short xsize;
    unsigned short ysize;
    unsigned short zsize;
    long pixmin;
    long pixmax;
    char dummy1[4];
    char name[80];
    long colormap;
    char dummy2[404];
};

class RGBImage
{
public:
  int width;
  int height;
  int depth;
  char *imgData;
};

/*loads an rgb file into an RGBImage */
RGBImage *LoadRGB(const char *filename);
void OGL_Set_Current_Texture_Map(const RGBImage*, float u_scale, float v_scale, float u_offset, float v_offset);

void OGL_Set_Current_Material_Parameters(float shininess, float r_diffuseColor, float g_diffuseColor, float b_diffuseColor, float r_specularColor, float g_specularColor, float b_specularColor);

//GLuint loadMipmappedTexture(RGBImage*);
//void   setMipmappedTexture(GLuint);

#endif

